﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MINERP.DAL.OverOrder
{
    public  class UsersDAL:DALBase
    {
        public static users GetOneById(int userId)
        {
            return DataEntites.users.First(u => u.userID == userId);
            //users u;
            //using (newSampleYPDBEntities ds=new newSampleYPDBEntities() )
            //{
            //    u = ds.users.First(u1 => u1.userID == userId);
            //}
            //return u;
        }

        public void AddNew(OutProcessRecord outReocrd)
        {
            DataEntites.AddToOutProcessRecord(outReocrd);
            //using (newSampleYPDBEntities ds=new newSampleYPDBEntities ())
            //{
            //    ds.AddToOutProcessRecord(outReocrd);
            //}
        }
    }
}
